package com.peng.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 市场活动表
 * @TableName t_activity
 */
@TableName(value ="t_activity")
@Data
public class TActivity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键，自动增长，活动ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 活动所属人ID
     */
    @TableField(value = "owner_id")
    private Integer owner_id;

    /**
     * 活动名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 活动开始时间
     */
    @TableField(value = "start_time")
    private Date start_time;

    /**
     * 活动结束时间
     */
    @TableField(value = "end_time")
    private Date end_time;

    /**
     * 活动预算
     */
    @TableField(value = "cost")
    private BigDecimal cost;

    /**
     * 活动描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 活动创建时间
     */
    @TableField(value = "create_time")
    private Date create_time;

    /**
     * 活动创建人
     */
    @TableField(value = "create_by")
    private Integer create_by;

    /**
     * 活动编辑时间
     */
    @TableField(value = "edit_time")
    private Date edit_time;

    /**
     * 活动编辑人
     */
    @TableField(value = "edit_by")
    private Integer edit_by;

    /**
     * 一对一关联
     */
    @TableField(exist = false)
    private TUser ownerDO;
    @TableField(exist = false)
    private TUser createByDO;
    @TableField(exist = false)
    private TUser editByDO;
}